package org.hk.kg.db;

import java.util.List;
import java.util.Map;

/**
 * 数据库查询接口
 * @author wangre
 */
public interface IDBUtils {
	public int execute(String dbname,String sql);
	
	public int batchExecute(String dbname,String sqls[]);
	
	public List<Map> query(String dbname,String qrySql);
	
	public Map querySingle(String dbname,String qrySql);
	
	/**
	 * 
	 * @param dbname
	 * @param qrySql
	 * @param qryMap
	 * @return
	 */
	public List<Map> query(String dbname,String qrySql,Map qryMap);
}
